#pragma once

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>

#include "CountdownWidget.h"

class ShowAndGuess : public QWidget,
                     public std::enable_shared_from_this<CountdownWidget>{
    Q_OBJECT

public:
    ShowAndGuess();
    ~ShowAndGuess();

    bool eventFilter(QObject *watched, QEvent *event) override;

private:
    //Read words from file
    void ReadWords();
    std::string GetRandomWord();

public slots:
    void onPassButtonClicked();
    void onDoneButtonClicked();

private:
    QPushButton passButton;
    QPushButton doneButton;

    QPushButton contentButton;

    CountdownWidget countdownWidget;

    QHBoxLayout mainLayout;
    QVBoxLayout leftLayout;

    std::vector<std::string> words;
};